﻿$(function() {
    var curr_group = $('#group_select').val();
    $('#myTabContent #' + curr_group).addClass('active');
});

function toggle_tab() {
    $('#myTabContent .tab-pane').each(
        function(e) {
            this.classList.remove('active');
        }
    );
    var curr_group = $('#group_select').val();
    $('#myTabContent #' + curr_group).addClass('active');
}

